#ifndef SCREENSHOT_H
#define SCREENSHOT_H
#include <QLabel>
#include <QPixmap>

class ScreenShot : public QLabel
{
    Q_OBJECT
private:
    bool ifChoose;
    QPoint origin;
    QRect rect;
protected:
    void mousePressEvent(QMouseEvent *ev);
    void mouseMoveEvent(QMouseEvent *ev);
    void mouseReleaseEvent(QMouseEvent *ev);
    void paintEvent(QPaintEvent *);
public:
    ScreenShot(QPixmap pix,QWidget*parent=0);
};

#endif // SCREENSHOT_H
